package com.lgc.javathread.threadPoolTest.threadproject;

/**
 * Created by Administrator on 2018/3/24.
 */
public class MyThread extends Thread { //1,继承Thread
    @Override
    public void run() {             //2,重写run方法
        for(int i = 0; i < 1000; i++) {      //3,将要执行的代码写在run方法中
            System.out.println("aaa");
        }
    }
}
